package spring.cloud.tasks.tasks_assign_manager.database.repository;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import spring.cloud.tasks.tasks_assign_manager.database.entity.TaskConfigurationDto;

import java.util.List;

@Repository
public interface TaskConfigurationDtoRepository {


    List<TaskConfigurationDto> getTaskConfigurationDtoListBynameSpace(@Param("nameSpace") String nameSpace);


    List<String> findConfigNamesBynameSpace(@Param("nameSpace") String nameSpace);

    TaskConfigurationDto getTaskConfigurationDtoBynameSpaceAndTaskId(@Param("nameSpace") String nameSpace,
                                                                     @Param("taskId") String taskId);


}